import service from '/@/utils/request';

//角色列表
export function roleList(current:number,limit:number,rolename:String) {
	return service({
		url: `/admin/system/sysRole/findByPage/${current}/${limit}`,
		method: 'post',
		data:{rolename}
		
	});
}
//角色添加
export function roleAdd(data:Object) {
	return service({
		url: `/admin/system/sysRole/role/add`,
		method: 'post',
		data
		
	});
}

//角色删除
export function  roleDel(id: String |Number){
	return service({
		url: `/admin/system/sysRole/role/del/${id}`,
		method: 'GET',
	});
}
//修改角色
export function  roleUpdate(data:Object){
	return service({
		url: `/admin/system/sysRole/role/update`,
		method: 'post',
		data
	});
}